<!-- 活动列表 activitylist -->
<template>
	<view>
		<view class="m-mg-lr heighly">
			<view class="" v-if="list.length">
				<view class="u-m-t-30" v-for="(item,index) in list" :key='index'>
					<u-swiper :list="item.images.split(',')" width="100%" height="360rpx" radius='5' @click="click($event,item.id)"></u-swiper>
				</view>
			</view>
			<list-empty v-else text="暂时没有数据哟!" list="data" :listHighly="highly" v-else></list-empty>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: []
			};
		},
		async onLoad() {
			let res = await this.require('activitylist');
			if (res) {
				this.list = res;
			}
		},
		methods: {
			click(e,id) {
				this.nextNav('/pages/christmasr/christmasr?id='+id);
			}
		}
	}
</script>

<style lang="scss">

</style>
